package wnhz.com.business.freeshop.activity.fourthfree;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import wnhz.com.business.R;
import wnhz.com.business.base.BaseActivity;
import wnhz.com.business.impl.ActionBarClickListener;
import wnhz.com.business.view.TranslucentActionBar;
import wnhz.com.business.view.TranslucentActionBarW;

/**
 * 验证添加银行卡
 */
public class YanZhengCardActivity extends BaseActivity implements ActionBarClickListener {

    @BindView(R.id.actionbar)
    TranslucentActionBarW actionbar;
    @BindView(R.id.et_phone)
    EditText etPhone;
    @BindView(R.id.et_cardnumber)
    EditText etCardnumber;
    @BindView(R.id.tv_getyzm)
    TextView tvGetyzm;
    @BindView(R.id.tv_ok)
    TextView tvOk;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yan_zheng_card_f);
        ButterKnife.bind(this);

        actionbar.setData("添加银行卡验证", R.drawable.ic_left_back, null, 0, null, 0, this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
            actionbar.setStatusBarHeight(getStatusBarHeight());
        }

    }

    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, YanZhengCardActivity.class);
        return intent;
    }

    @Override
    public void onLeftClick() {
        finish();

    }

    @Override
    public void onRightClick() {

    }

    @Override
    public void onEditTextClick() {

    }

    @OnClick(R.id.tv_ok)
    public void onViewClicked() {
        if (etPhone.getText().toString().equals("")||etPhone.getText().toString()==null&&
                etCardnumber.getText().toString().equals("")||etCardnumber.getText().toString()==null)
        {
            MyToast("请完善信息");
        }else
            {

            }
    }
}
